<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="36-12-手写Promise-函数方法reject实现.js"></script>
</head>

<body>
    <script>
        // 只会失败 - 没有机会成功
    //    let p = Promise.reject('no');

      let p = Promise.reject(new Promise((res,rej)=>{
          res('ok');
      }));

      console.log(p);


    </script>
</body>

</html>